import request from '@/utils/request'

export function uploadImg(data) {
  return request({
    url: '/toUpload/uploadImg',
    method: 'post',
    data
  })
}
export function uploadImgByUrl(data) {
  return request({
    url: '/toUpload/uploadImgByURL',
    method: 'post',
    data: {
      requestURL: data
    }
  })
}
